﻿<%@ Page Language="C#" AutoEventWireup="true" 
CodeBehind="NotaSalidaReadForm.aspx.cs" 
Inherits="UILGestion.AlmacenAdmin.NotaSalidaReadForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="lib" %>

<%@ Register src="~/Control/menuCtrl.ascx" tagname="menuObraCtrl" tagprefix="uc1" %>

<%@ Import Namespace="System.Web.Script.Services" %>
<%@ Import Namespace="System.Web.Services" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../resources/css/main.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/theme.css" />
    <title>Recepcion Documento</title>
    
    <style type="text/css">
        .style1
        {
            height: 18px;
        }
    </style>
    
    </head>
    
    <body>
        <form id="form1" runat="server" autocomplete="off">
            <uc1:menuObraCtrl ID="menuObraCtrl1" runat="server" />
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="true"  
                    EnablePartialRendering="true"></asp:ToolkitScriptManager>
              
  
     <asp:Panel ID="mainPanel1" runat="server" Visible="false"
                 CssClass="Heading secTitle AreaHeading ms-crm-List-Header " >

       
        
                 
                 <asp:Label ID="Label2" runat="server" Text="Registro  Nota de  Salida" 
                         style="font-size: large; color: #960818"></asp:Label>
</asp:Panel>
 <asp:Panel ID="PanelButtom" runat="server" Visible="false"    class="ms-crm-Form-Body" >
                         <table width="100%">
                         <tr>
                         <td>

                         
                     <table >
<tr>
<td>
    <asp:Button ID="refreshButton" runat="server" Text="Restablecer"    CssClass="ms-crm-List-Header"
        onclick="btnContinue_OnClick"  /></td>
<td>
    <asp:Button ID="EditarButton" runat="server" Text="Editar"   onclick="btnContinue_OnClick"  CssClass="ms-crm-List-Header"
            />
        </td>
<td>
    <asp:Button ID="nuevoButton" runat="server" Text="Nuevo"   onclick="btnContinue_OnClick"  CssClass="ms-crm-List-Header"
        Width="70px" /></td> <%--onclick="btnContinue_OnClick"--%>

 <td>
     &nbsp;</td>
 
        <td>
            &nbsp;</td>
 <td>
    <asp:Button ID="EliminarButton" runat="server" Text="Eliminar"  CssClass="ms-crm-List-Header"  OnClientClick="return confirm('Usted quiere eliminar?')" onclick="btnContinue_OnClick" 
        /></td> 

</tr>
</table>

</td>
                         <td align="right">

                         

<table align="right" >
            
            <tr>
                <td>
                    <asp:Button ID="anteriorButton" runat="server" Text="Anterior"  CssClass="ms-crm-List-Header"  OnClick="anteriorButton_Click" />
                </td>
                <td>
                    <asp:Button ID="siguienteButton" runat="server" Text="Siguiente"   CssClass="ms-crm-List-Header" OnClick="siguienteButton_Click" />
                </td>
            </tr>
        </table>  
                  
      </td>
                         </tr>
                         </table>

</asp:Panel>
  <asp:Panel ID="PanelBody" runat="server" Visible="false" BackColor="white" >

                     <input id="Hidden1" type="hidden" runat="server" />
       <input id="Hidden2" type="hidden" runat="server" />
        <input id="type" type="hidden" runat="server" />
       <input id="idAlmacen" type="hidden" runat="server" />
       <input id="idColeccionList" type="hidden" runat="server" />
        <input id="idOC" type="hidden" runat="server" />
         <input id="idObra" type="hidden"  runat="server"/>
         <input id="internalid" type="hidden" runat="server"/>
        
                  <table>
                      <tr>
                          <td align="right" valign="top" width="100px">
                               &nbsp;Fecha Emision:</td>
                          <td valign="top" width="150px">
                              <asp:Label ID="fechaEmisonTextBox" runat="server" AutoPostBack="True"></asp:Label>
                          </td>
                          <td align="right" valign="top" width="100px">
                               Motivo: </td>
                          <td valign="top" width="150px">
                              <asp:Label ID="motivoDropDownList" runat="server"  
                                  Width="180px"></asp:Label>
                          </td>
                          <td align="right" valign="top" width="100px">
                              &nbsp;</td>
                          <td align="left" valign="top" width="200px">
                              &nbsp;</td>
                      </tr>
                      <tr>
                      <td align="right" width="100px">
                               &nbsp;Numero:</td>
                          <td width="150px">
                              <asp:Label ID="numDocumentoLabel" runat="server"></asp:Label>
                          </td>
                          
                          <td align="right" valign="top" width="100px">
                               &nbsp;<asp:Label ID="almacenDesLBL" runat="server" Text=""></asp:Label>
                          </td>
                          <td valign="top" width="150px">
                              <asp:Label ID="almacenDestinoLBL" runat="server" Text=""></asp:Label>
                              
                          </td>
                          <td align="right" valign="top" width="100px">
                              &nbsp;</td>
                          <td align="left" valign="top" width="200px">
                              &nbsp;</td>
                      </tr>
                      <tr>
                         <td align="right" width="100px">
                               Documento: </td>
                          <td width="150px">
                              <asp:Label ID="tipoDocDropDownList" runat="server"  
                                  Width="50px"></asp:Label>
                              <asp:Label ID="documentoTextBox" runat="server"  
                                  Width="150px"></asp:Label>
                          </td>
                          <td align="right">
                               Solicita: </td>
                          <td width="150px">
                              <asp:Label ID="solicitaTextBox" runat="server"  
                                  Width="150px"></asp:Label>
                          </td>
                          <td align="right" width="100px">
                               Fecha Creacion: </td>
                          <td align="left" width="200px">
                              <asp:Label ID="fechaCreTextBox" runat="server" AutoPostBack="True" 
                                  ></asp:Label>
                          </td>
                      </tr>
                      <tr>
                          <td align="right" width="100px" class="style1">
                              Unidad de trabajo : </td>
                          <td width="150px" class="style1">
                              <asp:Label ID="unidadTrabajoTextBox" runat="server"  
                                  Width="150px"></asp:Label>
                          </td>
                          <td align="right" class="style1">
                               Autorizado: </td>
                          <td class="style1" width="150px">
                              <asp:Label ID="autorizadoTextBox" runat="server"  
                                  Width="150px"></asp:Label>
                          </td>
                          <td align="right" class="style1" width="100px">
                               Usuario Creacion: </td>
                          <td align="left" class="style1" width="200px">
                              <asp:Label ID="usuarioCreLabel" runat="server" AutoPostBack="True" 
                                  ></asp:Label>
                          </td>
                      </tr>
                      <tr>
                          <td align="right" valign="top" width="100px">
                               Observaciones: </td>
                          <td  colspan="3">
                              <asp:Label ID="observacionTextBox" runat="server" TextMode="MultiLine" Width="400px" ></asp:Label>
                          </td>
                         
                          <td align="right" width="100px">
                              &nbsp;</td>
                          <td align="left" width="200px">
                              &nbsp;</td>
                         
                      </tr>
                  </table>


 <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
             <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Insumos">
             <ContentTemplate>



        <asp:UpdatePanel ID="ItemUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
 
              

        <asp:GridView ID="itemGridView" runat="server" 
        AutoGenerateColumns="False" CellPadding="4" 
        SkinID="GridView"
        DataKeyNames="idInternal"
        ShowHeaderWhenEmpty="true"
        >

        
        <Columns>

        <%-- <asp:HyperLinkField    HeaderText="Documento Ref" datatextfield="descripcionRef" 
           datanavigateurlfields="idOrdenCompra,idObra"  
           dataNavigateUrlFormatString="OrdenCompraReadForm.aspx?id={0}&idObra={1}" />                              
        
        --%>    
        <asp:TemplateField HeaderText="Codigo" ItemStyle-Width="70px">
                <ItemTemplate>
            <asp:Label ID="codigoLabel" runat="server" Text='<%# Eval("codigo")%>'></asp:Label>
            </ItemTemplate>
        
         <EditItemTemplate>
            <lib:Input ID="codigoEditTextBox" runat="server" BackColor="Transparent" 
                  ReadOnly="true" Text='<%# Eval("codigo")%>' Width="70px" />
            </EditItemTemplate>
        
             
<FooterTemplate>
<lib:Input ID="codigoInsertTextBox" runat="server" BackColor="Transparent" 
         ReadOnly="true" Width="70px" />
            </FooterTemplate>
        
        
                                            
                                         
</asp:TemplateField>
<asp:TemplateField HeaderText="Descripcion" HeaderStyle-Width="400px">

<ItemTemplate>
    <asp:Label ID="descripcionLabel" runat="server" 
        Text='<%# Eval("descripcion")%>'></asp:Label>
            </ItemTemplate>
   
            
 <EditItemTemplate>
 
 <asp:Label ID="descripcionEditTextBox" runat="server" ReadOnly="true" 
         Text='<%# Eval("descripcion")%>' />
           </EditItemTemplate>
        
        
        
         
 <FooterTemplate>
 
<lib:Input ID="DescripcionInsert1TextBox" runat="server" BackColor="Transparent" 
          ReadOnly="true" Width="0" />
<lib:Input ID="descripcionInsertTextBox" runat="server" DataType="List"   backcolor="#DFE8F6"
          method="GetRecursos" 
         onchange="javascript:validarRecursoInsert(this);" 
         OnSelect="SelectRecursoInsert"  Width="90%" />
        </FooterTemplate>
        
        
        
        
        
        
        
        
        
                                             
                                         
</asp:TemplateField>


  <asp:TemplateField HeaderText="Unid." ItemStyle-Width="95px">
      <ItemTemplate>
          <asp:Label ID="unidadLabel" runat="server" Text='<%# Eval("unidad")%>' 
              Width="50"></asp:Label>
            </ItemTemplate>
        
        
        
        
        
        
        
        
        
            
      <EditItemTemplate>
          <asp:Label ID="unidadEditTextBox" runat="server" Text='<%# Eval("unidad")%>'  
              Width="50px" />
            </EditItemTemplate>
        
        
        
        
        
        
        
        
        
        
            
             
<FooterTemplate>
<lib:Input ID="unidadInsertTextBox" runat="server" BackColor="Transparent" 
         ReadOnly="true" Width="50px" />
            </FooterTemplate>
        
        
        
        
        
        
        
        
        
        
        
                                        
</asp:TemplateField>



  <asp:TemplateField HeaderText="Cant." ItemStyle-HorizontalAlign="Right" ItemStyle-Width="95px">
  <ItemTemplate>
  <asp:Label ID="cantidadLabel" runat="server" BackColor="Transparent" 
          Text='<%# Eval("cantidad")%>' />
            </ItemTemplate>
      
            
  <EditItemTemplate>
  <asp:TextBox ID="cantidadEditTextBox" runat="server"  backcolor="White"
          
          Text='<%# Eval("cantidad")%>' Width="75px" />   
            </EditItemTemplate>
<%--onchange="javascript:calcularTotalXCantidadEdit(this);" --%>
            
             
<FooterTemplate><asp:TextBox ID="cantidadInsertTextBox" runat="server"  backcolor="White"
         
        onchange="javascript:calcularTotalXCantidadInsert(this);" Width="75px" />


                                       
            </FooterTemplate>
        
        
         
        
        
        
        
        
        
        
        
        
        
            
</asp:TemplateField>

       
         
                </Columns>
        </asp:GridView>
       </ContentTemplate>
         </asp:UpdatePanel>  


         </ContentTemplate>
         </asp:TabPanel>
         </asp:TabContainer>
 </asp:Panel>



    

    </form>
</body>
</html>
